import http from '../request.js'

/* 
	首页 
*/
// 轮播图查看
export function allCarouselPicture(data) {
	return http({
		url: '/nurse/home/allCarouselPicture?type=' + data,
		method: "GET",
		data: data
	})
}
export function queryLocationByAddress(data) {
	return http({
		url: '/nurse/home/queryLocationByAddress',
		method: "GET",
		data: data
	})
}

// 获取更多订单
export function getMoreOrders(data) {
	return http({
		url: '/nurse/home/getMoreOrders',
		method: "POST",
		data: data
	})
}

// 获取最新订单
export function getNewOrders(data) {
	return http({
		url: '/nurse/home/getNewOrders',
		method: "POST",
		data: data
	})
}

// 抢单
export function grabOrders(data) {
	return http({
		url: '/nurse/seckill/grabOrders',
		method: "get",
		data: data
	})
}

// 定位所在城市
export function authentication(data) {
	return http({
		// url:'/nurse/location/authentication',
		url: '/nurse/home/authentication',
		method: "get",
		data: data
	})
}
// 获取所有订单 
export function getOrders(data) {
	return http({
		url: '/nurse/home/getOrders',
		method: "POST",
		data: data
	})
}